POV-Ray : Newsgroups : povray.general : Spline identifiers : Spline identifiers Server Time
4 Aug 2024 10:19:20 EDT (-0400)
  Spline identifiers  
From: LibraryMan
Date: 27 May 2003 17:25:01
Message: <web.3ed3d715461a4cd9738e706a0@news.povray.org>
In the section of the docs about spline identifiers (6.1.9), what is the
significance of the reference numbers (i.e., the float values that are in
increments of 0.25) in the example below:
#declare MySpline =
  spline {
    cubic_spline
    -.25, <0,0,-1>
    0.00, <1,0,0>
    0.25, <0,0,1>
    0.50, <-1,0,0>
    0.75, <0,0,-1>
    1.00, <1,0,0>
    1.25, <0,0,1>
  }

then in the section 6.1.9.1, they give this example:
#declare myspline = spline {
      1, <4,5>
      3, <5,5>
      5, <6,5>
  }

  Foo(myspline, 2)

I guess what I'm asking is, what is the significance of the reference
numbers (if that's what they are) being 0.25 apart, vs. being odd numbers?
It further confuses me that in the Foo macro, a `2' is thrown in as a
parameter, which I don't see in the spline identifier declaration....
What's up with this?
TIA,
LibraryMan


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.